package cn.bdqn.service.impl;


import cn.bdqn.dao.BankMapper;

import cn.bdqn.pojo.Bank;
import cn.bdqn.service.BankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 正文
 * @date 2020/6/25 - 11:03
 */
//题库
@Service
public class BankServiceImpl implements BankService {
    @Autowired
    private BankMapper bankMapper;
    @Override
    public List<Bank> getList() {

        return bankMapper.getList();
    }

    @Override
    public int add(Bank bank) {

        return bankMapper.add(bank);
    }

    @Override
    public List<Bank> getListById(int id) {

        return bankMapper.getListById(id);
    }

    @Override
    public int delete(int id) {

        return bankMapper.delete(id);
    }

    @Override
    public int update(Bank bank) {

        return bankMapper.update(bank);
    }
}
